package com.ssm.common.restful;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * http 接口返回的状态码标识
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    CODE_200(200, 200, "success"),
    CODE_401(401, 401, "illegal access"),
    CODE_402(402, 402, "your token has expired"),
    CODE_403(403, 403, "you have no authority to access"),
    CODE_405(405, 405, "data is null"),
    CODE_500(500, 500, "runtime exception");

    private final Integer code;
    private final Integer status;
    private final String describe;
}